import request from '@/utils/request'

// 查询商城轮播图列表
export function listShop_banner(query) {
  return request({
    url: '/model/shop_banner/list',
    method: 'get',
    params: query
  })
}

// 查询商城轮播图详细
export function getShop_banner(id) {
  return request({
    url: '/model/shop_banner/' + id,
    method: 'get'
  })
}

// 新增商城轮播图
export function addShop_banner(data) {
  return request({
    url: '/model/shop_banner',
    method: 'post',
    data: data
  })
}

// 修改商城轮播图
export function updateShop_banner(data) {
  return request({
    url: '/model/shop_banner',
    method: 'put',
    data: data
  })
}

// 删除商城轮播图
export function delShop_banner(id) {
  return request({
    url: '/model/shop_banner/' + id,
    method: 'delete'
  })
}

// 导出商城轮播图
export function exportShop_banner(query) {
  return request({
    url: '/model/shop_banner/export',
    method: 'get',
    params: query
  })
}